<?php
/**
 *  List of active  users
 * @file view/user/download.php
 * 
 * Since I can configure the contrler
 */
?>

<?php
        $this->output->set_header('Pragma: public')
            ->set_header('Pragma: public')
            ->set_header('Expires: 0')
            ->set_header('Cache-Control: must-revalidate, post-check=0, pre-check=0')
            ->set_header("Content-Type: text/csv")
            ->set_header('Content-Transfer-Encoding: binary')
            ->set_header('Content-Disposition: attachment; filename="user.csv"')
            ->set_header('Connection: close')
            ->set_header('Content-Length: '.filesize($tmpfile))
            ->set_status_header()
            ->set_output(file_get_contents($tmpfile)) // Read the file's contents)
            ->_display()
            ;
?>
        ksfhlkadfh laskjdfh asklfjh sakfjh aklfj
